
package com.sisgr.controle;

import com.sisgr.modelo.servico.OAuthService;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Alessandro
 */
@Controller
public class IndexController {
    
    @Autowired
    private OAuthService oasi;
    
    @RequestMapping("/")
    public String index (Map<String, Object> model){
        model.put("loginUrl", oasi.buildLoginUrl());
        return "index";
    }
    
    //Getters & Setters
    public OAuthService getOasi() {
        return oasi;
    }
    public void setOasi(OAuthService oasi) {
        this.oasi = oasi;
    }

}
